<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<body>
<script type="text/html" id="toolbarDemo">
	<div class="layui-btn-container">
		<button class="layui-btn layui-btn-sm" lay-event="add_panel">新增</button>
  	</div>
</script>
    	<fieldset class="layui-elem-field layui-field-title site-title">
			<legend><a name="fixbar" style="font-size: 16px; color: #ce2424;"></a></legend>
		</fieldset>
		<form class="layui-form" action="save" id="myForm" method="post" lay-filter="stuform">
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">类型：</label>
			<div class="layui-input-inline">
				<input type="text" name="type" value="${param.type}" class="layui-input" />
			</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">评价体系：</label>
				<div class="layui-input-inline">
					<input type="text" name="system" value="${param.system}" class="layui-input" />
				</div>
				</div>
				<%-- <div class="layui-inline">
					<label class="layui-form-label">权重：</label>
				<div class="layui-input-inline">
					<input type="text" name="nation" value="${param.weight}" class="layui-input" />
				</div>
				</div> --%>
				<%-- <div class="layui-inline">
					<label class="layui-form-label">内容：</label>
				<div class="layui-input-inline">
					
					<textarea name="explain"  placeholder="请输入内容" class="layui-textarea">${param.explain}</textarea>
				</div>
				</div> --%>
				<div class="layui-inline">
					<button type="button" class="layui-btn layui-btn-danger" onclick="search()" >查询</button>
					<button type="button" class="layui-btn layui-btn-danger" onclick="empty()" >清空</button>
				</div>
			</div>
		</form>

	<table class="layui-hide" id="tbClassState" lay-filter="tbClassState"></table>
	
	<script type="text/javascript">
		var option={
			elem:'#tbClassState',
			title:'班级状态',
			path:'evaluationXz',
			height:'full-265',
			addurl:'edit',
			where:{type:'${param.type}',explain:'${param.explain}',system:'${param.system}',nation:'${param.nation}'},
			toolbar:'#toolbarDemo',
			cols: [[
				{field: 'id', title: 'ID', hide: true, usersize: true, sort: true},
				{field: 'type', title: '类型'},
				{field: 'system', title: '评价体系'},
				{field: 'explain', title: '内容'},
				{field: 'weight', title: '权重'},
				{fixed: 'right', title:'操作', toolbar: '#barDemo2', width:200}
				
				
			]] 
		}
		var currRow="${param.currRow==null?'null':param.currRow}";
		var limit=${param.limit==null?'null':param.limit};
		var page=${param.page==null?'null':param.page};
		var classTable=new LayUiTable(option,currRow,limit,page);
		classTable.init();
		
		function search(){
			classTable.search();
		}
		
		function empty(){
			classTable.empty();
		}
	</script>
</body>
